{extend name="property/public/insidePageBase" /}
{block name="title"}新建流程配置{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form  layui-form-pane">
            <div class="layui-form-item">
                <label class="layui-form-label">汇 报 给</label>
                <div class="layui-input-block">
                    <input type="text" name="accept_uids" id="accept_uids_case" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">抄 送 给</label>
                <div class="layui-input-block">
                    <input type="text" name="copy_uids" id="copy_uids_case" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item" pane="">
                <label class="layui-form-label">启用状态</label>
                <div class="layui-input-block">
                    <input type="radio" name="is_show" autocomplete="off" value="1" title="启用" {:isset($info['is_show']) ? $info['is_show'] == 1 ? 'checked' : '' : ''}>
                    <input type="radio" name="is_show" autocomplete="off" value="2" title="关闭" {:isset($info['is_show']) ? $info['is_show'] == 2 ? 'checked' : '' : ''}>
                </div>
            </div>
            <div class="layui-form-item" id="audit_type" {if $info['is_type'] != 2}style="display: none"{/if}  pane="">
                <label class="layui-form-label">审批方式</label>
                <div class="layui-input-block">
                    <input type="radio" name="audit_type" autocomplete="off" value="1" title="顺序审批">
                    <input type="radio" name="audit_type" autocomplete="off" value="2" title="随机审批">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注说明</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入备注说明" name="remark" class="layui-textarea">{$info['remark']??''}</textarea>
                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <button class="layui-btn" lay-submit lay-filter="submitBtn" id="submitBtn">提交</button>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use([ 'form', 'layer','layCascader'], function () {
        var form = layui.form,layer = layui.layer,$ = layui.$, layCascader = layui.layCascader;
        setTimeout(() => {
            let accept_uids_case = layCascader({
                elem: '#accept_uids_case',
                value: {:json_encode($info['accept_uids']??'')},
                options: {:json_encode($propertyUsersData,JSON_UNESCAPED_UNICODE)},
                props: {multiple: true }
            });
            let copy_uids_case = layCascader({
                elem: '#copy_uids_case',
                value: {:json_encode($info['copy_uids']??'')},
                options: {:json_encode($propertyUsersData,JSON_UNESCAPED_UNICODE)},
                props: {multiple: true }
            });
        }, 300)
    });
</script>
{/block}